import request from '@/utils/request'

// 获取所有部门
// http://localhost:8081/RankingList/getArchDept
export function getArchDeptApi() {
  return request.get('/RankingList/getArchDept')
}

// 获得所有知识体系
// http://localhost:8081/RankingList/getKnowCategory
export function getKnowCategoryApi() {
  return request.get('/RankingList/getKnowCategory')
}

// 获得排行榜表格
// http://localhost:8081/RankingList/getTable
// 请求参数：ArchDeptName、KnowCateName、TimeType(0123对应全部和年月日)、period
export function getTableApi(params) {
  return request.get('/RankingList/getTable',{
    params: params 
  })
}

// 导出排行榜表格
// http://localhost:8081/RankingList/export
export function exportApi(params) {
  return request.get('/RankingList/export',{
    params: params, responseType: 'blob'
  })
}